package com.biz.primus.ms.sms.feign;

import com.biz.primus.model.member.vo.MemberVo;
import com.biz.primus.ms.sms.degraded.DegradedMemberFeignClient;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * MemberFeignClient
 *
 * @author JKLiues
 * @date 2017年11月20日
 */
@FeignClient(qualifier = "memberFeignClient", name = "service-member", fallback = DegradedMemberFeignClient.class)
public interface MemberFeignClient {

    /**
     * 根据查询账号
     *
     * @param account 账号
     * @return MemberVo
     */
    @GetMapping("soa/memberService/findByAccount")
    MemberVo findByAccount(@RequestParam("account") String account);
}